package com.kaili.common.exports;

import cn.afterturn.easypoi.entity.vo.NormalExcelConstants;
import com.kaili.common.exports.base.BaseExport;
import com.kaili.common.exports.base.ExportNotice;
import com.kaili.db.service.IHsEwbsSignDetailService;
import com.kaili.pojo.vo.SignQueryExportVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@ExportNotice(name = "签收查询导出")
@Component
public class ExportSignQueryList extends BaseExport {
    @Autowired
    IHsEwbsSignDetailService signDetailService;

    @Override
    public HashMap doExport(Map parm) {
        HashMap ret = new HashMap();
        ret.put(NormalExcelConstants.CLASS, SignQueryExportVO.class);
        List<SignQueryExportVO> list = signDetailService.getExportSignList(parm);
        ret.put(NormalExcelConstants.DATA_LIST, list);
        return ret;
    }
}
